const Index = ({ table_name, database }) =>{
	return  {
		modal:{
			title: <span>表【<b className='c3'>{ table_name }</b>】信息</span>,
			width: '100%',
			maxWidth:null,
			controls: 0
		},
		table: {
			api:'mysql/show_information_schema_table',
			param: { table_name, database },
			isIndex: 1,
			paging:0,
			cols:[
				{ title: '数据库', 			dataIndex: 'table_schema', 				width:80  },
				{ title: '表名', 			dataIndex: 'table_name', 				width:120  },
				{ title: '表类型', 			dataIndex: 'table_type', 				width:80  },
				{ title: '数据表登记目录', 	dataIndex: 'table_catalog', 			width:100  },
				{ title: '表字符校验编码集',	dataIndex: 'table_collation', 			width:120  },
				{ title: '表注释', 			dataIndex: 'table_comment', 			width:100  },
				{ title: '数据行数', 		dataIndex: 'table_rows', 				width:100  },
				
				{ title: 'Size(MB)', 		dataIndex: 'Size(MB)', 					width:80  },
				{ title: '空间碎片', 		dataIndex: 'data_free', 				width:80  },
				{ title: '数据长度', 		dataIndex: 'data_length', 				width:80  },
				{ title: '行平均长度', 		dataIndex: 'avg_row_length', 			width:100  },
				{ title: '索引长度', 		dataIndex: 'index_length', 				width:80  },
				{ title: '最大数据长度', 	dataIndex: 'max_data_length', 			width:80  },
				
				{ title: '自增起始点', 		dataIndex: 'auto_increment', 			width:80  },
				
				{ title: '创建选项', 		dataIndex: 'create_options', 			width:80  },
				{ title: '数据库引擎', 		dataIndex: 'engine', 					width:80  },
				{ title: '行格式', 			dataIndex: 'row_format', 				width:80  },
				
				{ title: '版本', 			dataIndex: 'version', 					width:80, align:'center' },
				{ title: '检测次数', 		dataIndex: 'checksum', 					width:80, align:'center' },
				{ title: '检测时间', 		dataIndex: 'check_time', 				width:120, align:'center' },
				{ title: '创建时间', 		dataIndex: 'create_time', 				width:120, align:'center' },
				{ title: '修改时间', 		dataIndex: 'update_time', 				width:120, align:'center' },
			]
		}
	}
}
export default Index